import http from '@/service/http'
import type * as T from '@/types/api/index'
const fileList: T.IFileApi = {
  list(data) {
    return http.post('/admin/oss/list', data)
  },
  add(data) {
    return http.post('/admin/oss/add', data)
  },
  dels(data) {
    return http.post('/admin/oss/del', {
      id: data.ids[0]
    })
  }
}

export default fileList
